package com.lightsaber.trade.cloth.dao.dataimport;

import org.springframework.stereotype.Component;
import org.springside.modules.orm.Page;

import com.lightsaber.trade.core.dao.BaseDao;
import com.lightsaber.trade.cloth.entity.dataimport.Dataimport;

@Component
public class DataimportDao extends BaseDao<Dataimport, String> {

    public Page<Dataimport> findPage(final Dataimport dataimport, final Page<Dataimport> page) {

        like("jobName", dataimport.getJobName());
        eq("interfaceType", dataimport.getInterfaceType());
        eq("status", dataimport.getStatus());

        return findPage(page);
    }
}
